﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{
    public partial class test
    {
        #region 纯的实体对象 + ToPOCO()
        /// <summary>
        /// 纯的实体对象
        /// </summary>
        /// <returns></returns>
        public test ToPOCO()
        {
            test poco = new test()
            {
                name = this.name,
                num = this.num,
                positions = this.positions,
                wages = this.wages,

            };
            return poco;
        }
        #endregion

        #region 1.0 生成 TViewModel 实体对象 +ToViewModel
        /// <summary>
        /// 生成 很纯洁的 实体对象
        /// </summary>
        /// <returns></returns>
        public ViewModel.test ToViewModel()
        {
            ViewModel.test poco = new ViewModel.test()
            {
                name = this.name,
                num = this.num,
                positions = this.positions,
                wages = this.wages,

            };
            return poco;
        }
        #endregion
    }
}
